package com.huidu.bitrade.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@TableName("ac_hdc_award")
public class AcHdcAward {

    private Long id;

    /**
     * 用户id
     */
    private Long memberId;

    /**
     * 奖励成功状态
     */
    private Integer status;

    /**
     * 错误原因
     */
    private String fail;

    /**
     * 当前星级人数
     */
    private Integer memberStarPeople;

    /**
     * 星级
     */
    private Integer memberStar;

    /**
     * 单份数量
     */
    private BigDecimal unitNumber;

    /**
     * 星级对应份数
     */
    private Integer count;

    /**
     * 总份数
     */
    private BigDecimal sumCount;

    /**
     * 奖励总数量
     */
    private BigDecimal sumAwardNumber;

    /**
     * 奖励hdc
     */
    private BigDecimal awardHdc;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
